package com.web.kdl.entity.matrix;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@TableName("matrix")
public class Matrix {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("site_id")
    private Integer siteId;

    @TableField("wheel_number")
    private Integer wheelNumber;

    @TableField("matrix_name")
    private String matrixName;

    private String topic;

    private String ip;

    private Integer port;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
